<?php

/**
 * IndexController - Index
 *
 * @author Fernando Dias Oliveira <rodox17@gmail.com>
 * @package intranet
 * @subpackage controller
 */

class RelatorioController extends AppBaseController 
{
	public function init()
	{
		parent::init();		
		
		$this->_helper->layout->disableLayout();
	}

    public function indexAction() 
    {
    	$caf01 = new caf01();
    	$caf10 = new caf10();
    	
    	$this->view->func = $caf01->getDropDrow();
    	$this->view->tp   = $caf10->getDropDrow();
    }
    
 	public function gerarAction()
 	{
 		$rel   = new rel();
 		$dados = $this->_request->getPost();
 		
 		$this->view->dados = $dados;
 		$this->view->rs    = $rel->busca($dados);
 	}
}

?>